package com.dycx.api.controller.manage.message;

import com.dycx.common.RestResponse;
import com.dycx.message.dto.MessageRecordDTO;
import com.dycx.message.service.MessageRecordService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping(value = "/manage/message/messageRecord")
public class MessageRecordController {

    @Resource
    private MessageRecordService messageRecordService;

    /**
     * 分页
     **/
    @PostMapping("/getPage")
    public RestResponse<?> getPage(@RequestBody MessageRecordDTO messageRecordDTO) {
        return RestResponse.success(messageRecordService.getPage(messageRecordDTO));
    }


}
